﻿using System;
using System.Collections.Generic;
using System.Text;

namespace HippoMapper.DAL.Base
{
    [AttributeUsage(AttributeTargets.Method, AllowMultiple = false,Inherited = true)]
    public class DelayLoadAttribute : Attribute
    {
        private string _fieldName;

        public string FieldName
        {
            get { return _fieldName; }
        }

        /// <summary>
        /// 注册延迟加载属性到以下方法
        /// </summary>
        /// <param name="fieldName">欲注册的延迟加载属性名</param>
        public DelayLoadAttribute(string fieldName)
        {
            this._fieldName = fieldName;
        }
    }
}
